﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>更新商品</title>
    <link rel="icon" href="favicon.ico" type="image/ico">


    <meta name="author" content="yinqi">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body data-logobg="color_8" data-sidebarbg="color_8">
<div class="layout-web">
    <div class="layout-container">


        <!--页面主要内容-->
        <main class="layout-content">

            <div class="container-fluid" style="width: 50%">


                <div class="col-md-12">
                    <div class="card" style="border-radius: 30px;background-color: #bce8f1;">
                        <div class="card-header"><h4 style="text-align: center;font-family: '楷体';font-size: 30px">
                            商品更新</h4></div>
                        <div class="card-body">
                            <form class="form-horizontal" action="commodityedit.action?type=2" method="post">
                                <input type="hidden" name="type" value="2"/>
                                <div class="form-group">
                                    <label class="col-xs-12">商品编号</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="number" id="gid" name="gid" placeholder="编号"
                                               value="${commodity.gid}" readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">商品名称</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="text" id="gname" name="gname"
                                               value="${commodity.gname}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">商品价格</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="number" id="price" name="price"
                                               value="${commodity.price}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">商品生产日期</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="date" id="prddate" name="prrdate" value="${commodity.prddate}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">系统版本</label>
                                    <div class="col-xs-12">
                                        <input class="form-control" type="text" id="model" name="model" value="${commodity.model}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">供应商</label>
                                    <div class="col-xs-12">
                                        <select style="border-radius: 10px;width: 100%;" name="supplier1">
                                            <c:forEach var="supplier" items="${list}">
                                                <option value="${supplier.supid}">${supplier.supname}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-xs-12">产品类型</label>
                                    <div class="col-xs-12">
                                        <select style="border-radius: 10px;width: 100%;" name="itype">
                                            <c:forEach var="commodityType" items="${list1}">
                                                <option id="type"
                                                        value="${commodityType.tyid}">${commodityType.tyname}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group" style="text-align: center">
                                    <label class="col-xs-12"></label>
                                    <div class="col-xs-12">
                                        <button class="btn btn-primary" type="submit"
                                                style="border-radius: 20px;font-family: '楷体';font-size: 17px;background-color: #b9d4ec;border: 0">提交
                                        </button>&nbsp;&nbsp;&nbsp;
                                        <button class="btn btn-info" type="reset"
                                                style="border-radius: 20px;font-family: '楷体';font-size: 17px;background-color: #b9d4ec;border: 0">重置
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>